<?php
class tpl_Form_Text {
	function call($toObj) {
		$Form = $toObj->DOG_appendChild('input')->attr(array(
			'type'=>'text',
			'id'=>Y('Module.List.Editor.Form.Name'),
			'class'=>'Form text '.Y('Module.List.Editor.Form.Name'),
			'name'=>Y('Module.List.Editor.Form.Name'),
			'tabindex'=>Y('Module.List.Editor.Form.TabIndex'),
			'value'=>htmlspecialchars(Y('Module.List.Editor.Form.Value')),
		));

		if (Y('Module.List.Editor.Form.max')) {
			$Form->attr(' maxlength', Y('Module.List.Editor.Form.max'));
		}
	}
}
?>
